var Detail = new Vue({
    el: '#productionDetail',
    data: {
        productionCostDetailVisible: false,
        orderInfo: {},
        erpOrder: {},
        csIdList: [],
        pmcIdList: [],
        remarkList: [],
        userPaymentList: [],
        erpOrderItemEntityList: [],
        erpOrderProductionList: [],
        goodsTypeEnum: []

    },
    // created: function () { //加载数据
    //     this.detailData();
    // },

    methods: {
        detailData: function (data) {
            var orderNo = data.orderNo;
            this.productionCostDetailVisible = true;
            $.get(baseURL + "order/erporder/allotInfo/" + orderNo, function (r) {
                Detail.orderInfo = r.orderInfo;
                Detail.erpOrder = r.erpOrder;
                Detail.csIdList = r.csIdList;
                Detail.pmcIdList = r.pmcIdList;
                Detail.remarkList = r.remarkList;
                Detail.userPaymentList = r.userPaymentList;
                Detail.erpOrderItemEntityList = r.erpOrderItemEntityList;
                Detail.erpOrderProductionList = r.erpOrderProductionList;
                Detail.goodsTypeEnum = r.goodsTypeEnum;
            });
        },
        reload: function () {
            this.productionCostDetailVisible = false;
        }
    }
});